package cc.vv.btpartyjob.partymanager.adapter

import android.widget.TextView
import cc.vv.baselibrary.adapter.SimpleCommonAdapter
import cc.vv.baselibrary.adapter.holder.ExtendViewHolder
import cc.vv.btpartyjob.jnimodule.server.OperationServer
import cc.vv.btpartyjob.partymanager.R
import cc.vv.btpartyjob.partymanager.moudel.bean.SiZhiDuiWuBean
import cc.vv.btpartyjob.partymanager.moudel.resp.WorkGoingResponseObj
import cc.vv.party.beans.vo.UnitVO

/**
 * 单位报到已报到、未报到 adapter
 * Created by Chen.qi on 2018/10/24.
 */
class WorkGoingAdapter(layoutResId: Int) : SimpleCommonAdapter<SiZhiDuiWuBean>(layoutResId) {
    override fun convert(helper: ExtendViewHolder, item: SiZhiDuiWuBean, position: Int) {
        //title
        helper.getView<TextView>(R.id.tv_iszGo_title)?.text = item.title

        //时间
        helper.getView<TextView>(R.id.tv_iszGo_time)?.text = OperationServer.formatStr(item.createTime)
    }
}